import request from "../../request";

export default {
  login(data) {
    //登录
    return request({
      url: "login/login",
      method: "post",
      data,
      contentType: "application/x-www-form-urlencoded;charset=UTF-8"
    });
  },
  logout() {
    //注销登录
    return request({
      url: "login/loginOut",
      method: "get"
    });
  },
  menus() {
    //左侧菜单
    return request({
      url: "TsysMenu/menu",
      method: "get"
    });
  },
  authority() {
    //用户权限
    return request({
      url: "TsysMenu/menuLimit",
      method: "get"
    });
  },
  updatePassword(data) {
    //修改密码
    return request({
      url: "TSysUser/updatePassword",
      method: "post",
      data
    });
  }
};
